Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EAK-518] Extend property scripting to respect settings declated in a chain of upstream members #529

Merged
merged 3 commits into from
Jun 4, 2024

Conversation

smiakchilo
Copy link
Collaborator

@smiakchilo smiakchilo commented Jun 1, 2024

Closes #518

@smiakchilo smiakchilo added enhancement New feature or request Java labels Jun 1, 2024
@smiakchilo smiakchilo linked an issue Jun 2, 2024 that may be closed by this pull request

_DependsOn_ does this dynamically (in runtime) in the browser. In a common scenario, _DependsOn_ is used to modify the state of a dialog widget after the user interacted with another widget of the same dialog (like showing or hiding a text field upon checking or unchecking a box).

_Property scripting_ with `@Setting`s as discussed above does this statically at the time of project building. It is used, e.g., to make a text field inside a fieldset display its default value as "Foo" when used within "MyComponentA" and "Bar" when used within "MyComponentB" -- all without the need to create two different fieldsets. You cannot make a scripted template react to a user action like you would do with a _DependsOn_ query.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may sound obvious to us, by maybe it's worth mentioning that settings variables can't be used in dependson and vice versa?...

@smiakchilo smiakchilo merged commit a3cc8ad into develop Jun 4, 2024
6 checks passed
@smiakchilo smiakchilo deleted the bugfix/EAK-518 branch June 4, 2024 07:34
@github-actions github-actions bot locked and limited conversation to collaborators Jun 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[EAK-518] Usage of scripting in nested fieldsets
3 participants